package cn.ctyun.videoplayer.util;

public class SDKLog {
    private static void logToFile(String msg){
        CTYunLogUtils.writeToLog(msg);
    }

    public static void trace(String tag, String message) {
        android.util.Log.v(tag, "SDKLog: " + message);
        logToFile(tag + ": " + message);
    }

    public static void debug(String tag, String message) {
        android.util.Log.d(tag, "SDKLog: " + message);
        logToFile(tag + ": " + message);
    }

    public static void info(String tag, String message) {
        android.util.Log.i(tag, "SDKLog: " + message);
        logToFile(tag + ": " + message);
    }

    public static void warn(String tag, String message) {
        android.util.Log.w(tag, "SDKLog: " + message);
        logToFile(tag + ": " + message);
    }

    public static void error(String tag, String message) {
        android.util.Log.e(tag, "SDKLog: " + message);
        logToFile(tag + ": " + message);
    }
}
